/**
 * 
 */
package org.cuatrovientos.JavaKart;

/**
 * 
 */

/**
 * Class inherited from vehicle, generates karts
 * @author mikel_luquin
 *
 */
public class Kart extends Vehicle {

        private String plate;

        /**
         * Default Constructor using inherited attributes
         * @param name
         * @param speed
         * @param acceleration
         * @param grip
         * @param plate
         */
        public Kart(String name, int speed, int acceleration, int grip, String plate) {
                super(name, speed, acceleration, grip);
                this.plate = plate;
        }

        
        
        /**
         * @return the plate
         */
        public String getPlate() {
                return plate;
        }



        /**
         * @param plate the plate to set
         */
        public void setPlate(String plate) {
                this.plate = plate;
        }



        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
                return "Kart [plate=" + plate + ", name=" + name + ", speed=" + speed
                                + ", acceleration=" + acceleration + ", grip=" + grip + "]";
        }
        
        
        
        
        

}